import { http } from '@/utils'

export interface Response {
    code: number;
    data: Datum[];
    [property: string]: any;
}

export interface Datum {
    alt?: null;
    content?: null;
    copyright?: string;
    default_image?: null;
    description?: string;
    icp?: string;
    id?: number;
    keywords?: string;
    title?: string;
    [property: string]: any;
}

export function fetchConfigAPI() {
    return http.request<Response>({
        url: '/home/config/',
    })
}